using System;
using System.Collections.Generic;
using System.Text;

namespace CruiseControlStatus
{
    public class ccUtils
    {
        private static string PUBLIC_KEY_TOKEN = "9f4da00116c38ec5";

        public static string getFolderPath()
        {
            string cmnFilePath = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles);
            cmnFilePath += @"\Microsoft Shared\web server extensions\wpresources\CruiseControlStatus\";
            Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName(false).Version;
            string version = "" + ver.Major + '.' + ver.MajorRevision + '.' + ver.Minor + '.' + ver.MinorRevision;
            return cmnFilePath + version + "__" + PUBLIC_KEY_TOKEN + @"\";
        }
    }
}
